<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.fc.util.*" %>
<%@ page import="com.fc.model.Store" %>
<%@ page import="com.fc.control.StoreControl" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>store_add</title>
</head>
<script language="javascript"> 
		function check()
		{
			    if(document.form1.boss_id.value=="")
				{
					alert("老板编号");
					document.form1.boss_id.focus();
					return;
				}
				else if(document.form1.store_name.value=="")
				{
					alert("店铺名称");
					document.form1.store_name.focus();
					return;
				}
				else if(document.form1.place.value=="")
				{
					alert("店铺地址");
					document.form1.place.focus();
					return;
				}
				else if(document.form1.price0.value=="")
				{
					alert("门票价格");
					document.form1.price0.focus();
					return;
				}
				else if(document.form1.price1.value=="")
				{
					alert("月卡价格");
					document.form1.price1.focus();
					return;
				}
				else if(document.form1.price2.value=="")
				{
					alert("年卡价格");
					document.form1.price2.focus();
					return;
				}
				else
				{form1.submit();}
		} 
		</script>
<body>
 <%
      request.setCharacterEncoding("UTF-8");
      int id=ParamUtil.getInt(request,"store_id",0);
  %>
 <form action="store_add_do.jsp" name="form1" method="post">
  	<table width="400" border="0" cellpadding="2" cellspacing="0">
  	          <tr>
  	            <td>老板编号</td>
  	            <td><input type="text" name="boss_id"></td>
  	          </tr> 	          
			  <tr>
			    <td>店铺名称</td>
			    <td><input type="text" name="store_name"></td>
		      </tr>
  	          <tr>
  	            <td>店铺地址</td>
  	            <td><input type="text" name="place"></td>
  	          </tr>
  	          <tr>
  	            <td>门票价格</td>
  	            <td><input type="text" name="price0"></td>
  	          </tr>
  	          <tr>
  	            <td>月卡价格</td>
  	            <td><input type="text" name="price1"></td>
  	          </tr>
  	          <tr>
  	            <td>年卡价格</td>
  	            <td><input type="text" name="price2"></td>
  	          </tr>
    </table>
    <input type="submit" value="提交" onClick="check()" />
    <input type="reset" name="Reset" value="重置" />
 </form>
</body>
</html>